package com.itheima.d06_static_code_blocks;

/*
            猪类
 */
public class Pig {
    public String name;
    public int age;
    public String owner;
    public String tyype;
    public static String country;
    public Pig(){
        System.out.println("无参构造方法");
    }
    public void eat(){
        System.out.println("猪吃饲料");
        }
        static {
            System.out.println("静态代码块");
            }

            {
            System.out.println("实例代码块");
            }

    }

